package com.baizhi.controller;


import com.baizhi.dto.PageDTO;
import com.baizhi.service.LogService;
import com.baizhi.vo.CommonQueryPageVo;
import com.baizhi.vo.CommonVo;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@CrossOrigin
@RestController
public class LogController {

    @Resource
    LogService logService;

    @RequestMapping("/log/queryAllPage")
    private CommonQueryPageVo queryAllPage(@RequestBody PageDTO pageDTO){

        CommonQueryPageVo page = logService.queryAllPage(pageDTO);

        return page;
    }
}
